Skip to content

feat: model-level qualifier resolution for rules and agents#75

Merged
N4M3Z merged 1 commit into
mainfrom
issue-60
Jul 8, 2026
Merged

feat: model-level qualifier resolution for rules and agents#75
N4M3Z merged 1 commit into
mainfrom
issue-60

Conversation

@N4M3Z

@N4M3Z N4M3Z commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Closes #60

Stacked on #74 (drift-verify fix); effective diff shrinks to one commit once #74 lands.

Problem

Rules and agents cannot vary per model: PROV-0005 qualifier directories resolve per harness only, so a model-specific variant (e.g. an opus-only rule) has no home.

Approach

Model-level qualifier resolution in assembly: provider model IDs become valid qualifier directories, resolved with precedence over harness qualifiers; release/deploy plumbing carries the model dimension.

Test plan

  • tests/model_qualifier.rs (178 lines, full matrix)
  • CI build matrix

Files in a model qualifier directory (rules/<provider>/<model-id>/Rule.md)
were silently dropped: the pipeline resolved variants with [provider] only,
the source walk skipped model subdirectories, and build_valid_qualifiers
hyphen-split model IDs into junk qualifiers (4, 6 from claude-opus-4-6).
Phase 1 wires the full user > provider/model > provider > base chain for
rules and agents: provider config gains a model field (overridable with
--model), the walk descends into known model-ID subdirectories, and an
unknown subdirectory in a provider qualifier dir is a validation error.
Skill overlays, provenance model recording, and the release matrix are
deferred to Phase 2.
@N4M3Z N4M3Z merged commit 8822b53 into main Jul 8, 2026
4 checks passed
@N4M3Z N4M3Z deleted the issue-60 branch July 8, 2026 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

model-level qualifier resolution and skill overlays (PROV-0005)

1 participant